def test(str_n: str):
    if len(str_n) >= 5000:
        return "输入的数字不小于5000"
    end_word = str_n.split(' ')[-1]
    return f"最后一个单词为{end_word}, 长度为{len(end_word)}"


def test1(str_n: str):
    if len(str_n) < 8:
        print(str_n + '0'*(8 - len(str_n)))
    else:
        start = 0
        for i in range(0, len(str_n), 8):
            print(str_n[start:i])
            start = i
        else:
            end = len(str_n) % 8
            print(str_n[start:len(str_n)] + '0' * (8 - end))


if __name__ == '__main__':
    print(test1('aaaaaaaaaaaa'))
